package com.nursinghome.common.mapper;

import com.nursinghome.annotation.Page;
import com.nursinghome.bean.Reservation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 程硕
* @createDate 2025-04-07 01:10:33
* @Entity com.nursinghome.bean.Reservation
*/
public interface ReservationMapper {
    //新增
    Integer insert(Reservation reservation);
    //修改
    Integer update(Reservation reservation);
    //根据id回显数据
    Reservation selectById(String id);
    //查询护工当前有无时间段服务
    Reservation selectByDate(@Param("mid") Integer mid, @Param("startTime") String startTime, @Param("endTime") String endTime);
    @Page
    //查询所有
    List<Reservation> selectAll(Reservation reservation);


}
